#ifndef layer_game_main_h
#define layer_game_main_h

#import "head.h"

@interface LayerMenuMain : CCLayer
{
	/*image
	*/
	CCSprite *imageBackground_;
	CCSprite *imageTitle_;

	/*cloud
	*/
	CCSprite *cloud1_;
	CCSprite *cloud2_;
	CCSprite *cloud3_;

	/*heart
	*/
	CCSprite *heart1_;
	CCSprite *heart2_;
	CCSprite *heart3_;

	/*menu
	*/
	CCMenu *menu_;
	CCMenuItemImage *itemPlay_;
	CCMenuItemImage *itemLoveLibrary_;
	CCMenuItemImage *itemSurvival_;
	CCMenuItemImage *itemFunction_;
	CCMenuItemImage *itemOption_;
	CCMenuItemImage *itemGameCenter_;
	CCMenuItemImage *itemMoreGames_;

	CCSprite *itemFunctionSprite_;

	/*flag
	*/
	bool flagLockMenuFunction_;
	bool flagLockItemFunction_;
}

@property (nonatomic, readwrite) bool flagLockFunction;

- (id)initLayerMenuMain;
- (void)dealloc;
- (void)tickFunctionBack:(ccTime)Time;

- (void)CreateCloud;

/*call back function
*/
- (void)CallBackMenuItemPlay:(id)Sender;
- (void)CallBackMenuItemLoveLibrary:(id)Sender;
- (void)CallBackMenuItemSurvival:(id)Sender;
- (void)CallBackMenuItemFunction:(id)Sender;
- (void)CallBackMenuItemOption:(id)Sender;
- (void)CallBackMenuItemGameCenter:(id)Sender;
- (void)CallBackMenuItemMoreGames:(id)Sender;

- (void)CallBackItemFunctionAniOver:(id)Sender;
- (void)CallBackItemFunctionBackAniOver:(id)Sender;

@end

#endif